package com.dameng.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SystemDept extends Model<SystemDept> {
    @TableId(type = IdType.ASSIGN_UUID)
    private String deptId;
    private String pid;
    private String name;
    private String deptCode;
    private Integer sortNo;
    private String prefix;
    private String contact;
    private String tel;
    private String addr;
    private String email;
    private String deptDuty;

    @Override
    protected Serializable pkVal() {
        return this.deptId;
    }
}
